﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CreateEditProducts.ascx.cs" Inherits="Web.Cms.Products.CreateEditProducts" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="radCln" %>
<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
<%@ Register TagPrefix="cc1" Namespace="AWS.FilePicker" Assembly="FilePickerControl" %>   

<p class="heading" style="margin-left:400px; ">QUẢN LÝ THÔNG TIN SẢN PHẨM</p> 
   
    <table width="100%" style="padding-left:10px;border:1px solid #C0DAE6">
         <tr>
            <td >
                &nbsp;</td>
            <td colspan="3">                
            </td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td >
                &nbsp;</td>
            <td colspan="3">
                <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="true" ForeColor="red" 
                    Font-Size="11px"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width:160px;"><strong>Tên sản phẩm:</strong></td>
            <td style="width:550px;">
                <strong>
                <asp:TextBox ID="txtProductName" runat="server" CssClass="textbox-product"></asp:TextBox>
                <br /></strong>                             
            </td>
            <td style="width:100px;">
                <strong>Giá:</strong></td>
            <td>
                <strong>
                <asp:TextBox ID="txtPrice" runat="server" Width="100px" Text="0" CssClass="textbox-product" onkeyup="this.value = FormatNumber(this.value);" onfocusout="ConvertPriceText(this.value)" onblur="ConvertPriceText(this.value)"></asp:TextBox>
                </strong>
            </td>
            <td class="style2">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <strong>Từ khóa tìm kiếm</strong></td>
            <td >
                <strong>
                <asp:TextBox ID="txtKeyword" runat="server" CssClass="textbox-product"></asp:TextBox>
                </strong>
            </td>
           
        </tr>
        <tr >
            <td>
                <strong>Thuộc danh mục sản phẩm:</strong></td>
            <td>
                <strong>
                <asp:DropDownList ID="dropZoneId" runat="server" CssClass="textbox-product" Width="200">
                </asp:DropDownList>
               
                 </strong>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="dropZoneId"
                    ErrorMessage="Bạn chưa lựa chọn danh mục sản phẩm" InitialValue="0" ForeColor="red">Bạn chưa lựa chọn danh mục sản phẩm</asp:RequiredFieldValidator>
               
            </td>
          
        </tr>
        <tr>
            <td>
                <strong>Ảnh nhỏ:</strong></td>
            <td>
                <strong>
                <cc1:FilePicker ID="txtAvatarSmail" runat="server" fpPopupURL="/FilePicker/FilePicker.aspx"
                    Width="200px" Height="20px" fpAllowedUploadFileExts="jpg" CssClass="input"></cc1:FilePicker>(.jpg)
                    <asp:TextBox runat="server" ID="textImgAvatarSmail" Visible="false"></asp:TextBox>
                </strong></td>
            <td>
                <strong>Ảnh lớn:</strong></td>
            <td>
                <strong>
                <asp:TextBox runat="server" ID="textImgAvatarBig" Visible="false"></asp:TextBox>
                <cc1:FilePicker ID="txtAvatarBig" runat="server" fpPopupURL="/FilePicker/FilePicker.aspx"
                    Width="200px" Height="20px" 
                    fpAllowedUploadFileExts="jpg" 
                    CssClass="input"></cc1:FilePicker>(.jpg)
                </strong></td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Image ID="ImgAvatarSmail" runat="server" Height="100px" Width="75px" />
            </td>
            <td>
                &nbsp;</td>
            <td>
                <asp:Image ID="ImgAvatarBig" runat="server" Height="100px" Width="75px" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr style="display:none">
            <td>
                <strong>Thành phố:</strong></td>
            <td>
                <strong>
                <asp:DropDownList ID="DropCity" runat="server" CssClass="textbox-product" Width="100">
                <asp:ListItem Value="10">Hà Nội</asp:ListItem>
                </asp:DropDownList>
                <br />
                  </strong>                             
            </td>
            <td>
                <strong>Số thứ tự:</strong></td>
            <td >
               <asp:DropDownList ID="dropPriority" runat="server" Width="50px" CssClass="textbox-product">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>13</asp:ListItem>
                    <asp:ListItem>14</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>16</asp:ListItem>
                    <asp:ListItem>17</asp:ListItem>
                    <asp:ListItem>18</asp:ListItem>
                    <asp:ListItem>19</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>21</asp:ListItem>
                    <asp:ListItem>22</asp:ListItem>
                    <asp:ListItem>23</asp:ListItem>
                    <asp:ListItem>24</asp:ListItem>
                    <asp:ListItem>25</asp:ListItem>
                    <asp:ListItem>26</asp:ListItem>
                    <asp:ListItem>27</asp:ListItem>
                    <asp:ListItem>28</asp:ListItem>
                    <asp:ListItem>29</asp:ListItem>
                    <asp:ListItem>30</asp:ListItem>
                </asp:DropDownList>
                </td>
            <td>
                &nbsp;</td>
        </tr>        
        <tr >
            <td>
                <strong>Môt số lựa chọn:</strong></td>
            <td colspan="3">
                <strong>
                <asp:CheckBox ID="chboxSanPhamNoiBat" runat="server" Text="Sản phẩm nổi bật" Font-Italic="true" Height="20px"/>
                  &nbsp;  &nbsp;
                <asp:CheckBox ID="chboxSanPhamHot" runat="server" Text="Sản phẩm hot nhất" Font-Italic="true" Height="20px"/>
                  &nbsp;  &nbsp;
                <asp:CheckBox ID="chboxSanPhamMoiNhat" runat="server" Text="Sản phẩm mới nhất" Font-Italic="true" Height="20px"/>
                &nbsp;&nbsp;
                <asp:CheckBox ID="chboxSanPhamGiamGia" runat="server" Text="Sản phẩm giảm giá" Font-Italic="true" Height="20px"/>
                &nbsp;&nbsp;
            </strong>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>            
            <td><strong>Ngày đăng:</strong></td>
            <td>
                <strong style="padding-bottom:5px;">
                <radCln:RadDateTimePicker ID="txtCreateOn" runat="server" Height="25"></radCln:RadDateTimePicker>                
                  </strong>                             
            </td>
            <td style="display:none;"><strong>Ngày kết thúc:</strong></td>
            <td style="display:none;">
                <strong style="padding-bottom:5px;">
                <radCln:RadDateTimePicker ID="txtEnd" runat="server" Height="25"></radCln:RadDateTimePicker>                
                  </strong>                             
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <strong>Mô tả ngắn:</strong></td>
            <td colspan="3">
                <asp:TextBox runat="server" ID="txtDescriptionNote" TextMode="MultiLine" CssClass="textbox-product" Height="50" Width="590"></asp:TextBox>
            </td>
            <td>
                    &nbsp;</td>
        </tr> 
        <tr>
            <td>
                <strong>Mô tả:</strong></td>
            <td colspan="3">
                    <CE:Editor AutoConfigure="Minimal" ID="txtDescription" runat="server"></CE:Editor> 
            </td>
            <td>
                    &nbsp;</td>
        </tr>        
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr >
            <td>
                <strong>Thông tin chi tiết:</strong></td>
            <td class="style1" colspan="3">
            <CE:Editor AutoConfigure="Full_noform" ID="txtContents" runat="server">
            </CE:Editor>                                   
            </td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr >
            <td colspan="5">&nbsp;</td>            
        </tr>
        <tr >
            <td>
                &nbsp;</td>
            <td class="style1">
                    <asp:LinkButton ID="btnAdd" runat="server" SkinID="admin-ButtonInsert" onclick="btnAdd_Click" />  
                    <asp:LinkButton ID="btnUpdate" runat="server" SkinID="admin-ButtonUpdate" onclick="btnUpdate_Click"/>
                </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
       <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>         
    </table>